import pandas as pd


def csv_2_df(history_data_file):
    df = pd.read_csv(history_data_file)
    df['净值日期'] = pd.to_datetime(df['净值日期'])
    df.set_index('净值日期', inplace=True)
    return df